Fix information logs getting logged as debug in VSCode#78522
Merged
dibarbet merged 3 commits intodotnet:mainfrom May 9, 2025
Merged
Fix information logs getting logged as debug in VSCode#78522dibarbet merged 3 commits intodotnet:mainfrom
dibarbet merged 3 commits intodotnet:mainfrom
Conversation
dibarbet
commented
May 9, 2025
| /// TODO - Switch this to call LogInformation once appropriate callers have been changed to LogDebug. | ||
| /// </summary> | ||
| public override void LogInformation(string message, params object[] @params) => _hostLogger.LogDebug(message, @params); | ||
| public override void LogInformation(string message, params object[] @params) => _hostLogger.LogInformation(message, @params); |
Member
Author
There was a problem hiding this comment.
we were previously downgrading all info logs to debug in vscode because information logs were too verbose. That was because originally the lowest LSP logger level was info, and we ended up logging everything as info.
this fixes it by logging info as info, and adjusting the usages of info logging to a more appropriate level.
Member
There was a problem hiding this comment.
Oh thank you for finally fixing this!
jasonmalinowski
approved these changes
May 9, 2025
src/LanguageServer/Protocol/Handler/Completion/CompletionResolveHandler.cs
Show resolved
Hide resolved
| // what to skip, and what files we have to tell the client have been removed. | ||
| var previousResults = GetPreviousResults(diagnosticsParams) ?? []; | ||
| context.TraceInformation($"previousResults.Length={previousResults.Length}"); | ||
| context.TraceDebug($"previousResults.Length={previousResults.Length}"); |
Member
There was a problem hiding this comment.
Not really related to this, but whenever I saw this in the logs it was very unclear what this was related to. Not sure if it should also be prefixed with handlerName or something.
Member
Author
src/LanguageServer/Protocol/Handler/RelatedDocuments/RelatedDocumentsHandler.cs
Outdated
Show resolved
Hide resolved
Member
Author
|
/azp run roslyn-integration-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
3 tasks
This was referenced May 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Updates LSP logging to log using debug more appropriately, and fixes LSP server logging to not downgrade information logs to debug.